class Person(object):
    name = ""
    age = 0
    height = 0

    # 方法参数必须以self为第一个参数

    # self代表类的实例（某个对象）
    def run(self):
        print("我是跑的功能")

    def eat(self, food):
        print("吃得东西是：" + food)

per1 = Person()
print(per1)

per1.name = "zs"
per1.age = 18
per1.height = 178
print(per1.name, per1.age, per1.height)

per1.run()
per1.eat("apple")





